<?php


//用户管理
$router->post('visitor/index', 'UserController@getVisitorIndex');
$router->post('user/index', 'UserController@getIndex');
$router->post('shop/index', 'ShopController@getIndex');
$router->post('shop/one', 'ShopController@getOne');
$router->post('shop/modify', 'ShopController@modify');
$router->post('shop/del', 'ShopController@del');
//业务管理
$router->group(['namespace'=>'Tmps'], function () use ($router) {
    //个人模板1
//    $router->post('tmp1/index', 'Tmp1Controller@getIndex');
//    $router->post('tmp1/one', 'Tmp1Controller@getOne');
//    $router->post('tmp1/add', 'Tmp1Controller@add');
//    $router->post('tmp1/modify', 'Tmp1Controller@modify');
//    $router->post('tmp1/attr/modify', 'Tmp1Controller@attrModify');
//    $router->post('tmp1/upload/img', 'Tmp1Controller@uploadImg');
//    $router->post('tmp1/follow/index', 'Tmp1Controller@getFollowList');
//    $router->post('tmp1/comment/index', 'Tmp1Controller@getCommentList');
});
//广告管理
$router->group(['prefix'=>'ad', 'namespace'=>'Ads'], function () use ($router) {
    $router->post('place/index', 'PlaceController@getIndex'); //广告位
    $router->post('shop/sel', 'ShopController@getSelIndex'); //商家选项
    $router->post('shop/index', 'ShopController@getIndex'); //商家添加的广告
    $router->post('shop/add', 'ShopController@setAdd');
    $router->post('shop/run', 'ShopController@setRun');
    $router->post('shop/del', 'ShopController@setDel');
    $router->post('stat/index', 'ShopController@getStatIndex'); //已展示
});